import {createRouter, createWebHistory} from "vue-router";
// 导入组件

import ChatVue from "@/view/Chat.vue";


//定义路由关系
const routes = [
    { path: '/chat', component: ChatVue },
]

// 创建路由器
const router = createRouter({
    history: createWebHistory(),
    routes: routes
})

// 导出路由
export default router